package visualizer.client.utils;

/**
 * User: DDovzhenko
 * Date: 02.02.14
 * Time: 17:33
 */
public class VisualizerUtils {
    public static final String DEFAULT_INNER_COLOR = "lightyellow";
    public static final String DEFAULT_OUTER_COLOR = "black";
    public static int animationSpeed = 1500;
    public static boolean isAnimationStarted = false;

    private static VisualizerUtils instance = new VisualizerUtils();

    private AlgorithmType selectedAlgorithm = AlgorithmType.BALANCE_WITH_VINE;

    public static VisualizerUtils getInstance() {
        return instance;
    }

    public void setSelectedAlgorithm(AlgorithmType algorithm) {
        selectedAlgorithm = algorithm;
    }

    public AlgorithmType getSelectedAlgorithm() {
        return selectedAlgorithm;
    }
}
